home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
011
/
park.asm
< prev
next >
Wrap
Assembly Source File
|
1985-06-03
|
2KB
|
45 lines
PAGE 60,132
TITLE PARK (PROGRAM TO PARK THE FIXED DISK HEADS)
;------------------------------------------------------------------;
; ;
; This program moves the hard disk head to cylinder 320 ;
; before you power down the drive. ;
; ;
; It was originally written by Roy M. Matney and ;
; appeared in the October, 1984 issue of BYTE. ;
; ;
; Terry Barr 10-22-84 ;
;------------------------------------------------------------------;
STACK SEGMENT PARA PUBLIC 'STACK'
DB 64 DUP ('STACK ')
STACK ENDS
WORK SEGMENT PARA PUBLIC 'WORK'
DB '$'
WORK ENDS
SOFT SEGMENT PARA PUBLIC 'SOFT'
LOC DB ?
SOFT ENDS
CSEG SEGMENT PARA PUBLIC 'CODE'
START PROC FAR
ASSUME CS:CSEG,DS:WORK,SS:STACK,ES:SOFT
PUSH DS
SUB AX,AX
PUSH AX
MOV AX,WORK
MOV DS,AX
MOV ES,AX ; DMA LOCATION
MOV AX,0C01H ; SEEK COMMAND - 1 SECTOR
MOV BX,0000H ; DMA OFFSET
MOV CX,3F41H ; CYL=320 - SECTOR=1
MOV DX,0080H ; HEAD=0 - DRIVE=0
INT 13H ; CALL FIXED DISK BIOS
RET ; RETURN TO DOS
START ENDP
CSEG ENDS
END START